import React, { Component } from 'react';
import { View, Image, Dimensions, StyleSheet } from 'react-native'


export default class Welcome extends Component {
    constructor(props) {
        super(props);
    }
    componentDidMount() {
        setTimeout(() => {
            global.routerChangePage('main')
        }, 2000)
    }
    render() {
        var { height, width } = Dimensions.get('window');
        var styles = StyleSheet.create({
            images: {
                width: width,
                height: height
            }
        });

        return (
            <View>
                <Image style={styles.images} source={require('../assets/img/1launchImage.jpg')}></Image>
            </View>
        )
    }
}